import request from '@/utils/request'

// 查询指标同步列表
export function listWordOnlineKeySyncRecord(query) {
  return request({
    url: '/word/wordOnlineKeySyncRecord/list',
    method: 'get',
    params: query
  })
}

// 初始化同步指标环境列表
export function initKeySyncRecord(query) {
  return request({
    url: '/word/wordOnlineKeySyncRecord/initKeySyncRecord',
    method: 'get',
    params: query
  })
}

// 查询指标同步详细
export function getWordOnlineKeySyncRecord(id) {
  return request({
    url: '/word/wordOnlineKeySyncRecord/' + id,
    method: 'get'
  })
}

// 保存指标同步
export function saveWordOnlineKeySyncRecord(data) {
  return request({
    url: '/word/wordOnlineKeySyncRecord/save',
    method: 'post',
    data: data
  })
}

// 删除指标同步
export function delWordOnlineKeySyncRecord(id) {
  return request({
    url: '/word/wordOnlineKeySyncRecord/' + id,
    method: 'delete'
  })
}

// 导出指标同步
export function exportWordOnlineKeySyncRecord(query) {
  return request({
    url: '/word/wordOnlineKeySyncRecord/export',
    method: 'get',
    params: query
  })
}
